package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("application")
public class Application {
    @TableId(type = IdType.AUTO)
    private Long applicationId;
    private Date applicationTime;
    private String applicationPreference;
    private String applicationFinished;

    private Long coachId;
    private Long studentId;
    private Long licenceId;

    private Coach coach;
    private Student student;
    private Licence licence;
}
